import Vue from 'vue'
import Router from 'vue-router'
import list from '@/pages/list'
import listView from '@/pages/listView'
import edit from '@/pages/edit'
import view from '@/pages/view'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'list',
      component: list
    },
    {
      path: '/listView',
      name: 'listView',
      component: listView
    },
    {
      path: '/edit/:id',
      name: 'edit',
      component: edit
    },
    {
      path: '/view/:id',
      name: 'view',
      component: view
    }
  ],
  mode: "history",
})
